<html>
<head>
<title>My form2</title>
</head>
<body>

<?php
$server = 'localhost';
$user = 'root';
$password = '';
$dbselect = 'FG';

mysql_connect($server,$user,$password);
mysql_select_db($dbselect);





if($_POST["vote"] == "1"){
echo "1";
mysql_query("INSERT INTO Temp VALUES(1)");
}
else if($_POST["vote"] == "2"){
echo "2";
mysql_query("INSERT INTO Temp VALUES('2')");
}
else{
echo "duno";
mysql_query("INSERT INTO Temp VALUES(3)");
}

?>

</body>
</html>
